package com.fuhao.pay.service;

import com.alibaba.fastjson.JSONObject;
import com.fuhao.core.base.BaseResponse;
import com.fuhao.dto.input.CreatePayTokenInputDto;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.validation.Valid;

/**
 * @author zhang
 * @title: 创建预支付token
 */
public interface CreatePayTokenService {

    /**
     * 创建预支付令牌
     *
     * @return
     */
    @RequestMapping("/cratePayToken")
    BaseResponse<JSONObject> cratePayToken(@Valid CreatePayTokenInputDto createPayTokenInputDto, BindingResult bindingResult);
}
